[paket]
tanim   = Visual Studio Code (vscode): Modern web ve bulut uygulamaları oluşturmak ve hata ayıklamak için düzenleyici (resmi ikili sürüm)
paketci = Cihan_Alkan 
grup    = sistem 
url     = https://code.visualstudio.com/

[gerek]
derleme  =  
calisma  =  

[kaynak]
1 = https://update.code.visualstudio.com/${surum}/linux-x64/stable::code_x64_${surum}.tar.gz

[sha256]
#1  = cab1a4d5351f9871533700523570f86f92bbe6e4055f44e5df950eb4b4f48bb3
#2  = 8e9a6c70ab0ceb5d91b637dc290768f8a47edb5d7b6e2eebc4459dbc4ee040d7

[derle]
betik= install -d "${PKG}/usr/share/licenses/visual-studio-code"
betik= install -d "${PKG}/opt/visual-studio-code"
betik= install -d "${PKG}/usr/bin"
betik= install -d "${PKG}/usr/share/applications"
betik= install -d "${PKG}/usr/share/icons" 
betik= install -d "${PKG}/usr/share/mime/packages"

[pakur]
betik= install -m644 "${SRC}/VSCode-linux-x64/resources/app/resources/linux/code.png" "${PKG}/usr/share/icons/visual-studio-code.png"
betik= install -m644 "${SRC}/visual-studio-code.desktop" "${PKG}/usr/share/applications/visual-studio-code.desktop"
betik= install -m644 "${SRC}/visual-studio-code-url-handler.desktop" "${PKG}/usr/share/applications/visual-studio-code-url-handler.desktop"
betik= install -m644 "${SRC}/visual-studio-code-workspace.xml" "${PKG}/usr/share/mime/packages/visual-studio-code-workspace.xml"
betik= cp -r "${SRC}/VSCode-linux-x64/"* "${PKG}/opt/visual-studio-code" -R
betik= ln -s /opt/visual-studio-code/bin/code "${PKG}"/usr/bin/code


